<?php
defined('IN_ADMIN') or exit('No permission resources.');
include PC_PATH.'modules'.DIRECTORY_SEPARATOR.'admin'.DIRECTORY_SEPARATOR.'templates'.DIRECTORY_SEPARATOR.'header.tpl.php';
?>

<div id="main_frameid" class="pad-10 display" style="_margin-right:-12px;_width:98.9%;">
<script type="text/javascript">
$(function(){if ($.browser.msie && parseInt($.browser.version) < 7) $('#browserVersionAlert').show();}); 
</script>
<div class="explain-col mb10" style="display:none" id="browserVersionAlert"> <?php echo L('ie8_tip')?></div>

<div class="col-2 lf mr10" style="width:48%">
  <h6><?php echo L('personal_information')?></h6>
  <div class="content"> <?php echo L('main_hello')?><?php echo $admin_username?><br />
    <?php echo L('main_role')?><?php echo $rolename?> <br />
    <div class="bk20 hr">
      <hr />
    </div>
    <?php echo L('main_last_logintime')?><?php echo date('Y-m-d H:i:s',$logintime)?>
    <?php echo L('main_last_loginip')?><?php echo $loginip?> <br />
  </div>
</div>
<div class="col-2 col-auto">
  <h6><?php echo L('main_sysinfo')?></h6>
  <div class="content"> <?php echo L('main_os')?><?php echo $sysinfo['os']?> <br />
    <?php echo L('main_web_server')?><?php echo $sysinfo['web_server']?> <br />
    <?php echo L('main_sql_version')?><?php echo $sysinfo['mysqlv']?><br />
    <?php echo L('main_upload_limit')?><?php echo $sysinfo['fileupload']?><br />
	<?php echo L('main_cms_vesion')?>V1.2.4<br />
	<?php echo L('main_go3c_vesion')?>V1.2.4<br />
	<?php echo L('main_bigtv_vesion')?>V1.2.2<br />
  </div>
</div>
<div class="bk10"></div>

<div class="col-2 lf mr10" style="width:100%">
<?php
$ccache = getcache('category_content_1','commons');
if(module_exists('member') && is_array($ccache)) { ?>

<?php } else { ?>

<div class="bk10"></div>

<h6>Update Caches</h6>
<div class="content" id="update_tips" style="height:90px; overflow:auto;">
<ul id="file" class="sbul">
<div class="pad-10">
  <form action="?m=admin&c=cache_all&a=init&pc_hash=<?php echo $_SESSION['pc_hash'];?>" target="cache_if" method="post" id="myform" name="myform">
    <input type="hidden" name="dosubmit" value="1">
  </form>
  <iframe id="cache_if" name="cache_if" class="ifm" width="0" height="0"></iframe>
</div>
<script type="text/javascript">
document.myform.submit();
function addtext(data) {
	$('#file').append(data);
	document.getElementById('update_tips').scrollTop = document.getElementById('update_tips').scrollHeight;
}
</script>
</div>
<?php }?>
</div>

<div class="bk10"></div>

</div>
</body>
</html>
